//
//  MedicalRecordPatientInfoCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2021/8/19.
//  Copyright © 2021 QDSG. All rights reserved.
//

import UIKit

class MedicalRecordPatientInfoCell: UITableViewCell {
    
    func bind(to viewModel: MedicalRecordCellViewModel) {
        departmentLabel.text = viewModel.departmentName
        cardNoLabel.text = viewModel.cardNo
        timeLabel.text = viewModel.time
        
        nameLabel.text = viewModel.patientName
        sexLabel.text = viewModel.patientSex
        ageLabel.text = viewModel.patientAge
    }

    @IBOutlet private weak var departmentLabel: UILabel!
    @IBOutlet private weak var cardNoLabel: UILabel!
    @IBOutlet private weak var timeLabel: UILabel!
    
    @IBOutlet private weak var infoView: UIView! {
        didSet {
            infoView.layer.cornerRadius = 4
            infoView.layer.borderWidth = 1
            infoView.layer.borderColor = UIColor(hex: "#EEEEEE").cgColor
        }
    }
    
    @IBOutlet private weak var nameLabel: UILabel!
    @IBOutlet private weak var sexLabel: UILabel!
    @IBOutlet private weak var ageLabel: UILabel!
    
}
